<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="../../static/admin/css/reset.css">
    <link rel="stylesheet" type="text/css" href="../../static/admin/css/main.css">
    <link rel="stylesheet" href="../../static/admin/css/jquery.pagination.css">
    <script type="text/javascript" src="../../static/admin/js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="../../static/admin/js/jquery.pagination.min.js"></script>
</head>
<body>
<div class="breadcrub">
    当前位置：权限审批
</div>
<div class="pannel">
    <table class="common_table">
        <tr>
            <th>用户id</th>
            <th>申请时间</th>
            <th>操作</th>
        </tr>
        {% for user in data.user %}
            <tr>
                <td>{{ user.user_id }}</td>
                <td>{{ user.create_time }}</td>
                  <td>
                    <a href="http://127.0.0.1:5000/admin/agree?u_id={{user.user_id}}" class="review">同意</a>
                </td>
            </tr>
        {% endfor %}
    </table>
</div>

<div class="box">
    <div id="pagination" class="page"></div>
</div>

<script>
    $(function () {
        $("#pagination").pagination({
            currentPage: {{ data.current_page }},
            totalPage: {{ data.total_page }},
            callback: function (current) {
                window.location.href = '/admin/user_list?p=' + current
            }
        });
    });
</script>
</body>
</html>